import QtQuick 2.2
/*
* 信号连接信号等同于信号连接方法。
*/

Rectangle {
	id: forwarder;
	width: 100;
	height: 100;

	signal send();
	onSend: console.log("Send clicked");

	MouseArea {
		id: mousearea;
		anchors.fill: parent;
		onClicked: console.log("MouseArea clicked");
	}

	Component.onCompleted: {
		mousearea.clicked.connect(send);
	}
}
